﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="ProductIn.aspx.cs" Inherits="GoShopping.Web.ProductManager.ProductIn" Title="无标题页" %>
<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc1" %>
<%@ MasterType VirtualPath="ProductManage.Master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
            <table class="style1" width="800px">
                <tr>
                    <td style="width: 100px; text-align:center">
                        导入进货列表:</td>
                    <td style="width: 200px">
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                    </td>
                    <td style="width: 61px">
                        <asp:Button ID="btnPreview" runat="server" onclick="btnPreview_Click" 
                            Text="预览" />
                    </td>
                    <td>
                        <asp:Button ID="btnPrdtSheet" runat="server" onclick="btnPrdtSheet_Click" 
                            Text="导出进货模板" />
                    </td>
                </tr>
            </table>
            <table class="style1">
                <tr>
                    <td colspan="2">
                        <cc1:ExtensionGridView ID="ExtensionGridView1" runat="server" 
                            AllowPaging="True">
                        </cc1:ExtensionGridView>
                        <asp:Button ID="btnPrdtIn" runat="server" onclick="btnPrdtIn_Click1" 
                            Text="导入" />
                        <cc1:ExtensionGridView ID="extGVPrdtIn" runat="server" 
                    AutoGenerateColumns="False" onrowcommand="extGVPrdtIn_RowCommand" 
                    PagerText="当前第{0}页,共{1}页{2}条记录" RecordCount="-1" SortAscImageUrl="" 
                    SortDescImageUrl="" AllowPaging="True" Width="800px" Visible="False">
                            <Columns>
                                <asp:TemplateField HeaderText="PrdtID" Visible="False">
                                    <ItemTemplate>
                                        <asp:Label ID="lblID" runat="server" Text='<%# Eval("ProductID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="商品名">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" 
                                    CommandArgument='<%# Eval("ProductID") %>' CommandName='<%# "PIEdit" %>' 
                                    Text='<%# Eval("ProductID") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="进价">
                                    <ItemTemplate>
                                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("InPrice") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="售价">
                                    <ItemTemplate>
                                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("SalePrice") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="市场价">
                                    <ItemTemplate>
                                        <asp:Label ID="Label4" runat="server" Text='<%# Eval("MarketPrice") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="进货量">
                                    <ItemTemplate>
                                        <asp:Label ID="Label5" runat="server" Text='<%# Eval("InCount") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="进货日期">
                                    <ItemTemplate>
                                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("InDate") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="生产日期">
                                    <ItemTemplate>
                                        <asp:Label ID="Label7" runat="server" Text='<%# Eval("ProduceDate") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="保质期">
                                    <ItemTemplate>
                                        <asp:Label ID="Label8" runat="server" Text='<%# Eval("Durability") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle HorizontalAlign="Left" />
                        </cc1:ExtensionGridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
</asp:Content>
